﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using KG.SystemService;
using NodeDTO = KG.SystemService.NodeDTO;

namespace KG.ServiceLogic.Logic
{
    /// <summary>
    /// 节点管理逻辑层
    /// </summary>
    public class NodeLogic
    {
        private SystemService.NodeService _nodeService;
        public NodeLogic(SystemService.NodeService nodeService)
        {
            _nodeService = nodeService;
        }

        public NodeDTO.OutputId AddNode(NodeDTO.InputAdd req)
        {
            return _nodeService.AddNode(req);
        }
        public string DeleteAllNode()
        {
            return _nodeService.DeleteAllNode();
        }
        public NodeDTO.OutputId DeleteNode(NodeDTO.InputDelete req)
        {
            return _nodeService.DeleteNode(req);
        }
        public NodeDTO.OutputId UpdateNode(NodeDTO.InputUpdate req)
        {
            return _nodeService.UpdateNode(req);
        }
        public NodeDTO.OutputLoad LoadNode(NodeDTO.InputLoad req)
        {
            return _nodeService.LoadNode(req);
        }
        public NodeDTO.OutputGet GetNode(NodeDTO.InputGet req)
        {
            return _nodeService.GetNode(req);
        }
        public NodeDTO.OutputLabelLoad LabelLoad()
        {
            return _nodeService.LabelLoad();
        }
        public NodeDTO.OutputLoad ComplexLoad(NodeDTO.InputComplexLoad req)
        {
            return _nodeService.ComplexLoad(req);
        }
    }
}
